package dp.gr03.payroll.methods;

import dp.gr03.payroll.Paycheck;
import dp.gr03.payroll.payrollDomain.PaymentMethod;

public class DirectMethod implements PaymentMethod
{
    protected String bank;
    protected String account;

    public DirectMethod(String bank, String account){
        this.bank = bank;
        this.account = account;
    }
    
    @Override
    public void pay(Paycheck pc)
    {
        pc.setField("Deposit", String.format("%s: %s", account, bank));
    }
}
